package com.tuocent.dagv2.common.entity;

import com.tuocent.dagv2.entity.Modules;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serial;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Getter
@Setter
@ToString
public class UserModule extends Modules implements Serializable {
    @Serial
    private static final long serialVersionUID = -7380678404700906818L;

    protected List<Modules> children = new ArrayList<>();
    protected String isChildren;

    public void addChildren(Modules node) {
        children.add(node);
    }

}
